package top.canyue.word_range_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import top.canyue.word_range.pojo.po.Condition;

@Mapper
public interface ConditionMapper extends BaseMapper<Condition> {

    @Insert("INSERT INTO `condition`(id, name) " +
            "VALUES(MD5(UUID()),#{name})")
    Integer addCondition(Condition condition);

}
